package com.example.mall.order.app.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.example.mall.common.page.Pageable;
import com.example.mall.order.domain.model.Order;
import com.example.mall.order.infr.mapper.OrderMapper;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * @author Mickey
 * @since 2022/4/22
 **/
@Service
@AllArgsConstructor
public class OrderQryService {

    private final OrderMapper orderMapper;

    public Pageable<Order> page(Pageable<Order> pageable) {
        return orderMapper.selectPage(pageable, new LambdaQueryWrapper<>());
    }
}
